package com.aht.qywxwebdemo;

import cn.hutool.extra.spring.SpringUtil;
import me.chanjar.weixin.cp.api.WxCpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.thymeleaf.spring6.util.SpringContentTypeUtils;

@ComponentScan(basePackages={"cn.hutool.extra.spring"})
@SpringBootApplication
public class QywxWebDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(QywxWebDemoApplication.class, args);
//
//        WxCpService wxCpService = SpringUtil.getBean(WxCpService.class);
//        String url = wxCpService.getOauth2Service().buildAuthorizationUrl("http://zhzhy.online:8383/ldnh/qywxapi/oauth2callback", "ldchina");
//        System.out.println(url);

    }

}
